<?php
include "../../public/common/config.php";
$sql = "select * from user where isadmin !=1";
$result = mysql_query($sql);
//print_r($result);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<!--<meta name="viewport" content="width=divice-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />-->
		<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
		<link rel="stylesheet" type="text/css" href="../public/css/common.css"/>
		<title></title>
	</head>
	<body>
		<table>
			<thead><tr><th>编号</th><th>用户名</th><th>修改</th><th>删除</th></tr></thead>
			
			<?php
			while($row = mysql_fetch_assoc($result)){
				echo "<tr>";
				echo "<td>{$row['id']}</td>";
				echo "<td>{$row['username']}</td>";
				echo "<td><a href='edit.php?id={$row['id']}'>修改</a></td>";
				echo "<td><a href='delete.php?id={$row['id']}'>删除</a></td>";
				echo "</tr>";
			}	
			?>
			
		</table>
	</body>
	
</html>
